Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 271 total)
  • Thank you for kind words 🙂

    @indra1007

    Have you read the article that was linked by @danbp?
    Do you have .htaccess file in the same diretory where you installed WordPress?
    If not, create it with this content:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    More details here: https://codex.wordpress.org/htaccess

    In your case – makes sense. All members joining all public groups won’t work.

    So, you need a more “hacky” solution.
    Try to dive into bp_group_is_member() function. It has a filter with the same name.

    You can try to do something like this (not tested):

    add_action( 'bp_group_is_member', function( $is_member, $group ) {
    	if ( bp_get_group_is_public( $group ) ) {
    		return true;
    	}
    	
    	return $is_member;
    } );

    Put it into bp-custom.php.

    Latest WordPress itself has issues on PHP 7.1, and while testing BuddyPress we allow failures on PHP 7.1 as well.
    So in general BuddyPress should work on PHP 7.1, but no one spent extra attention on testing there everything and fix if there are any issues.

    Try to downgrade to PHP 7.0.x.

    If the error persists only when learndash integration is activated, you should contact that plugin authors for support (if they provide one). As it’s seems not a BuddyPress issue, and not newly BP 2.8 version issue.

    As I don’t know that integration plugin, I can’t help.

    Is it BuddyPress 2.8.0?

    You will need to integrate Multi Vendor plugin into BuddyPress.
    That means create specific profile pages (there is an article in BuddyPress Codex), modify BuddyPress templates in your child theme (same – see articles in Codex).

    You can check this as well:

    Perhaps, upon user registration you should auto-join them to all public groups. And modify templates in your child theme to hide JOIN / LEAVE buttons for public groups.

    Registration link is broken.

    It should be http://cintaku.id/register/, and NOT http://cintaku.id/index.php/register/.
    Go to permalinks settings and make it like this: http://take.ms/l5qFy
    Then click Save.

    What are your WordPress and BuddyPress versions?

    @mahwash


    @danbp
    already replied you with a proper advice. You should know CSS, you can also modify the HTML structure of the /buddypress/activity/activity-loop.php file (it should be in your theme).

    Also, don’t forget to check the theme – switch to any default, like 2017, 2016, 2015 etc.

    First thing to try in this case – disable plugins one by one and check whether it affects the uploading.
    Thus you will nail plugin that generates this issue.

    Sure, you will need to filter out the $arguments variable in my code for the required by you activity_type.

    You can put the resulting code into a separate custom plugin or in https://codex.buddypress.org/themes/bp-custom-php/

    That is not CSS, that is PHP.

    And no, there is nothing to do with Forums in my code, as in your initial post you wrote this:

    Is there a way to send a notification email EVERY time there is an update, regardless of whether or not they have been mentioned or have liked the post.

    So my code will send an email (but you will need to write down its subject and message and get a user email to send to) on every activity added to Activity directory. If this is not what you want – you will need to filter it out properly and modify as you see fit.
    I gave you the direction, not the final working solution for your seems changeable requirements.

    Super easy solution is to do like this:

    1) find or create a buddypress/activity/post-form.php file in your theme
    2) find in that file a textarea with id="whats-new" and add maxlength="143" to its attributes so it will become something like this:
    <textarea class="bp-suggestions" maxlength="143" name="whats-new" id="whats-new" cols="50" rows="10"....
    3) save and done.

    It will limit globally, though. If only in groups (not modifiying activity directory and profiles) – wrap it in a p_is_group() like this
    <textarea class="bp-suggestions" <?php echo bp_is_group() ? 'maxlength="143"' : '';?> name="whats-new" id="whats-new" cols="50" rows="10"....

    Team is a BuddyPress group.
    League – is the group type, read about it here: https://codex.buddypress.org/developer/group-types/

    This might be helpful for you too: https://codex.buddypress.org/add-custom-tab-to-groups-directory/ (leagues as tabs in groups/teams directory).

    Try this add_filter('show_admin_bar', '__return_false');. Put it in bp-custom.php or in your child theme functions.php.

    The problem might be with styling for Admin Bar. Just a guess.

    I think, you can’t do that easily.

    Reason: BuddyPress activated and is working on subsite 1, where all of its tables created. Subsite 2 is completely independent site with even own list of users.

    To fix this: you will need to write quite heavy bridge, that will query the subsite 1 and asks each time whether user has there what you need on subsite 2.

    Can you please provide some screenshots? Your idea is not very clear to me.

    Your task is a compilation of several steps.

    1) You need to add a custom field to BuddyPress registration form
    See this https://buddypress.org/support/topic/how-to-display-a-custom-field/ or similar (just google).

    2) You need to get the list of users by a member type to display in a <select> field created in 1).
    See https://codex.buddypress.org/developer/member-types/ and its “Querying by member type” section.

    3) In 1) you created and it’s also written how to store that data, I suggest using usermeta (update_user_meta()). You should store not the teachers names, but their ids in metas.

    4) Now you need to display this info in user profile.
    Investigate wp-content/plugins/buddypress/src/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php file, you will see there several hooks that may be useful for you. There you will just echo what you need.
    Example: get_user_by('id', get_user_meta(bp_displayed_user_id(), 'teacher_id'))->display_name; or similar using BuddyPress functions.

    Yes, you can use a hook in a function bp_activity_add() called the same.

    /**
     * Fires at the end of the execution of adding a new activity item, before returning the new activity item ID.
     *
     * @since 1.1.0
     *
     * @param array $r Array of parsed arguments for the activity item being added.
     */
    do_action( 'bp_activity_add', $r );
    

    So you should write something like this:

    add_action( 'bp_activity_add', function( $arguments ) {
        // Put in wp_mail() function all your params, see https://developer.wordpress.org/reference/functions/wp_mail/
        wp_mail($to, $subject, $message);
    } );
    

    Currently there is no such plugin. Introducing this feature is quite heavy for the server, so it’s more like a custom solution, ideally with websockets.

    We use heartbeat functionality, that gives ability to show a notification about new activity records, but there are no plans to actually update old records due to lots of technical issues and time availability (all BuddyPress core devs are volunteers).

    You can check this plugin: https://premium.wpmudev.org/project/ning-to-buddypress-user-importer/

    But before buying it’s better to contact their support and ask about compatibility.

    Please take a minute to read this post: https://codex.buddypress.org/themes/bp-custom-php/
    Short answer: /wp-content/plugins/bp-custom.php

Viewing 25 replies - 26 through 50 (of 271 total)
Skip to toolbar